<?php
include_once('common/header.php');
if($AppUI->id <=0 || ($AppUI->id > 0 && $AppUI->type < 1)) {
	Vfriend_Function::redirect(HOST_BACKEND);
}
if(isset($_SESSION['post'])) unset($_SESSION['post']);
$intPage	= $objRequest->getParam('page', 1);
$intLimit	= ADMIN_LIMIT;
$intTotal	= 0;
$intOff		= (($intPage-1) * $intLimit);
$objAdmin	= new Admin();
$arrResult	= $objAdmin->getAll($AppUI->type, $intOff, $intLimit, $intTotal);
$this->view->arrResult		= $arrResult;
$this->view->intTotal		= $intTotal;
$this->view->intOffset		= $intOff;
$this->view->intLimit		= $intLimit;
$this->view->arrType		= $arrType;
?>